package org.fatmansoft.teach.Repository.ViewRepository.DailyActivity;

import org.fatmansoft.teach.entity.ViewEntity.DailyActivity.DailyActivityType;
import org.fatmansoft.teach.entity.ViewEntity.DailyActivity.StudentDailyActivity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentDailyActivityRepository extends JpaRepository<StudentDailyActivity, Integer> {
    List<StudentDailyActivity> findStudentDailyActivityByStudentId(Integer studentNum);

    List<StudentDailyActivity>findAllByStudentId(Integer studentId);

    List<StudentDailyActivity>findAllByDailyActivityType(DailyActivityType dailyActivityType);
}
